package com.songcha.module_home.ui.activity

import android.os.Bundle
import android.view.View
import com.songcha.library_base.base.BaseActivity
import com.songcha.module_home.R
import com.songcha.module_home.databinding.HomeActivityMainBinding
import com.songcha.module_home.ui.fragment.home.HomeFragment


class MainActivity :BaseActivity() {
    /*override fun getLayoutId(): Int {
        return R.layout.home_activity_main
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
    }*/

    lateinit var binding:HomeActivityMainBinding

    override fun isImmerseStatusBar(): Boolean {
        return true
    }

    override fun getRootView(): View? {
        //return super.getRootView()
        binding=HomeActivityMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)

        val trans=supportFragmentManager.beginTransaction()
        trans.replace(R.id.home_frag, HomeFragment())
        trans.commit()

        /*val dialog = HomeBookRecommendDialog(this)
        dialog.show()*/

    }
}